using System.Net.NetworkInformation;

namespace OracleInternal.Network
{
	internal class NetEnvironment
	{
		public static readonly bool gotIPv4;

		public static readonly bool gotIPv6;

		static NetEnvironment()
		{
			NetworkInterface[] allNetworkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
			foreach (NetworkInterface obj in allNetworkInterfaces)
			{
				if (obj.Supports(NetworkInterfaceComponent.IPv4))
				{
					gotIPv4 = true;
				}
				if (obj.Supports(NetworkInterfaceComponent.IPv6))
				{
					gotIPv6 = true;
				}
			}
		}
	}
}
